]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Bottom-align weather title/location
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 20 Nov 2019 20:48:03 +0000 (21:48 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Nov 2019 00:13:05 +0000 (01:13 +0100)
The two labels use different font sizes, so they don't align properly.
Unfortunately we don't have BASELINE alignment in Clutter, but at least
END comes closer than the default FILL.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1927

js/ui/dateMenu.js

index 1c6884e92766e2fd3c1f8c42815aef4db573280f..0b9c0d932b9e90a72a6faeb2bcc8569fb0989acd 100644 (file)
@@ -272,6 +272,7 @@ class WeatherSection extends St.Button {
             style_class: 'weather-header',
             x_align: Clutter.ActorAlign.START,
             x_expand: true,
+            y_align: Clutter.ActorAlign.END,
             text: _('Weather'),
         }));
         box.add_child(titleBox);
@@ -279,6 +280,7 @@ class WeatherSection extends St.Button {
         this._titleLocation = new St.Label({
             style_class: 'weather-header location',
             x_align: Clutter.ActorAlign.END,
+            y_align: Clutter.ActorAlign.END,
         });
         titleBox.add_child(this._titleLocation);